Skip to content

Add skill creation guidelines based on writing-skills (#70)#74

Merged
devrimcavusoglu merged 3 commits into
mainfrom
feature/writing-skills-guidelines
Apr 26, 2026
Merged

Add skill creation guidelines based on writing-skills (#70)#74
devrimcavusoglu merged 3 commits into
mainfrom
feature/writing-skills-guidelines

Conversation

@devrimcavusoglu
Copy link
Copy Markdown
Owner

Summary

  • Integrate superpowers writing-skills guidelines into skern's skill create workflow as default behavior
  • Update DefaultBody() scaffold to include recommended sections: Overview, When to Use, Core Pattern, Quick Reference, Common Mistakes
  • Update default description placeholder to start with "Use when..." following CSO (Claude Search Optimization) guidelines
  • Add two new lint hints: description trigger prefix check and missing recommended body sections check
  • Add comprehensive Writing Skills Guidelines section to AGENTS.md
  • Add docs/guide/writing-skills.md documentation page with sidebar entry

Test plan

  • All existing tests pass (updated to reflect new defaults)
  • New tests cover description trigger prefix (missing + all 5 valid prefixes)
  • New tests cover missing/present recommended body sections
  • TestValidate_ValidSkill uses a fully guideline-compliant skill and produces zero issues
  • TestLintStyle_NoHints confirms a well-structured skill triggers no hints
  • go vet ./... passes
  • make test passes

Closes #70

🤖 Generated with Claude Code

devrimcavusoglu and others added 3 commits April 13, 2026 03:16
Integrate writing-skills guidelines into skern's skill create workflow:

- Update DefaultBody() scaffold with recommended sections (Overview,
  When to Use, Core Pattern, Quick Reference, Common Mistakes)
- Update default description to start with "Use when..." (CSO guideline)
- Add lint hints for description trigger prefix and missing body sections
- Add Writing Skills Guidelines section to AGENTS.md
- Add docs/guide/writing-skills.md documentation page
- Add comprehensive tests for new lint rules

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Move docs/guide/writing-skills.md to docs/writing-skills.md and
  trim AGENTS.md to a summary that links to the dedicated doc
- Expand trigger-phrase prefixes ("Use for/to", "Trigger when",
  "Apply when") and add "overview" to recommended body sections
- Match recommended sections by markdown heading rather than
  substring to avoid false positives from inline mentions
- Ignore .claude/ agent workspace

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Guard the central UX promise of the writing-skills guidelines
integration: NewSkill + DefaultBody + defaultDescription must
together pass lintStyle with zero hints. If any of those drift
out of sync with a future lint-rule addition, this test fails.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@devrimcavusoglu devrimcavusoglu merged commit c5c3a2a into main Apr 26, 2026
4 checks passed
@devrimcavusoglu devrimcavusoglu deleted the feature/writing-skills-guidelines branch April 30, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add skill creation guidelines based on superpowers writing-skills

1 participant